package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 头像 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-15 14:42:21 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "头像")
@Table ( name ="Project_Avatar")
public class ProjectAvatar  implements Serializable {

	private static final long serialVersionUID =  2764074635246591092L;

	/**
	 * 项目头像ID
	 */
	@ApiModelProperty(value = "项目头像ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Project_Avatar_Id" )
	private Long projectAvatarId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 证件ID
	 */
	@ApiModelProperty(value = "证件ID")
   	@Column(name = "Document_Id" )
	private Long documentId;

	/**
	 * 票ID
	 */
	@ApiModelProperty(value = "票ID")
   	@Column(name = "Ticket_Id" )
	private Long ticketId;

	/**
	 * 票种ID
	 */
	@ApiModelProperty(value = "票种ID")
   	@Column(name = "Ticket_Type_Id" )
	private Long ticketTypeId;

	/**
	 * 证件类型ID
	 */
	@ApiModelProperty(value = "证件类型ID")
   	@Column(name = "Document_Type_Id" )
	private Long documentTypeId;

	/**
	 * 票码
	 */
	@ApiModelProperty(value = "票码")
   	@Column(name = "Code" )
	private String code;

	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
   	@Column(name = "Remark" )
	private String remark;

	/**
	 * 地址
	 */
	@ApiModelProperty(value = "地址")
   	@Column(name = "Url" )
	private String url;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getProjectAvatarId() {
		return this.projectAvatarId;
	}

	public void setProjectAvatarId(Long projectAvatarId) {
		this.projectAvatarId = projectAvatarId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public Long getDocumentId() {
		return this.documentId;
	}

	public void setDocumentId(Long documentId) {
		this.documentId = documentId;
	}

	public Long getTicketId() {
		return this.ticketId;
	}

	public void setTicketId(Long ticketId) {
		this.ticketId = ticketId;
	}

	public Long getTicketTypeId() {
		return this.ticketTypeId;
	}

	public void setTicketTypeId(Long ticketTypeId) {
		this.ticketTypeId = ticketTypeId;
	}

	public Long getDocumentTypeId() {
		return this.documentTypeId;
	}

	public void setDocumentTypeId(Long documentTypeId) {
		this.documentTypeId = documentTypeId;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"projectAvatarId='" + projectAvatarId + '\'' +
					"projectId='" + projectId + '\'' +
					"documentId='" + documentId + '\'' +
					"ticketId='" + ticketId + '\'' +
					"ticketTypeId='" + ticketTypeId + '\'' +
					"documentTypeId='" + documentTypeId + '\'' +
					"code='" + code + '\'' +
					"name='" + name + '\'' +
					"remark='" + remark + '\'' +
					"url='" + url + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
